<tr id="time_entry_<%= time_entry.id %>" class="time_entry <%= cycle("odd", "even") %> hascontextmenu <%= call_hook(:plugin_timesheet_view_timesheets_time_entry_row_class, {:time_entry => time_entry }) %> <%= call_hook(:plugin_timesheet_views_timesheets_time_entry_row_class, {:time_entry => time_entry }) %>">
  <td align="center"><%= check_box_tag 'ids[]', time_entry.id, false, { :class => 'checkbox' } %></td>
  <td align="center"><%= format_date(time_entry.spent_on) %></td>
  <td align="center"><%= time_entry.user.name %></td>
  <td align="center"><%= time_entry.activity.name %></td>
  <td align="center"><%= time_entry.project.name %></td>
  <td align="center"><%= time_entry.issue.fixed_version if time_entry.issue %></td>
  <td align="center">
    <% if time_entry.issue %>
    <div class="tooltip">
      <%= link_to_issue time_entry.issue %>
      <span class="tip">
        <%= render_issue_tooltip time_entry.issue %>
      </span>
    </div>
    <% end %>
  </td>
  <td><%=h time_entry.comments %></td>
  <td align="center"><strong><%= number_with_precision(time_entry.hours, :precision => @precision) %></strong></td>
  <% Redmine::Hook.call_hook(:plugin_timesheet_views_timesheet_time_entry, {:time_entry => time_entry, :precision => @precision }) %>
  <td align="center">
    <% if time_entry.editable_by?(User.current) -%>
    <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => time_entry},
    :title => l(:button_edit) %>
    <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => time_entry},
    :confirm => l(:text_are_you_sure),
    :method => :delete,
    :title => l(:button_delete) %>
    <% end -%>
  </td>
</tr>
<% if add_day_total? time_entries, time_entry_counter %>
<tr class="total">
	<%= ("<td></td>" * 8).html_safe %>
	<td><%= calculate_day_total time_entries, time_entry_counter %></td>
	<td></td>
</tr>
<% end %>
